.container {
  min-height: 100vh;
  background-color: #f0f2f5;
}

.sider {
  overflow: auto;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1000;
}

.logo {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  margin: 16px;
  border-radius: 6px;
}

.logo h2 {
  color: white;
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

.header {
  background: white;
  padding: 0 16px;
  display: flex;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,21,41,.08);
  margin-left: 250px;
  height: 64px;
  position: relative;
  z-index: 999;
}

.collapseBtn {
  font-size: 16px;
  width: 64px;
  height: 64px;
  line-height: 64px;
  margin-right: 16px;
}

.headerTitle {
  font-size: 18px;
  font-weight: 500;
  color: #333;
}

.content {
  margin-left: 250px;
  padding: 20px;
  background-color: #f0f2f5;
  min-height: calc(100vh - 64px);
}

.dashboardContainer {
  padding: 0;
}

.topSection,
.middleSection,
.todaySection,
.chartSection {
  margin-bottom: 16px;
}

/* 图标卡片样式 */
.iconCard {
  height: 140px;
  background: linear-gradient(135deg, #87ceeb 0%, #4682b4 100%);
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(70, 130, 180, 0.3);
}

.iconContainer {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.homeIcon {
  font-size: 48px;
  margin-bottom: 8px;
}

.iconLabel {
  font-size: 14px;
  font-weight: 500;
}

.emptySpace {
  height: 140px;
}

/* 统计卡片样式 */
.statCard {
  height: 140px;
  background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
  border-radius: 8px;
  border: 1px solid #b3d9ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
  overflow: hidden;
}

.statCard .ant-card-body {
  padding: 16px;
  height: 100%;
}

.statHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.statTitle {
  font-size: 16px;
  font-weight: 600;
  color: #1890ff;
}

.statMainNumber {
  font-size: 32px;
  font-weight: bold;
  color: #1890ff;
}

.statGrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  height: calc(100% - 60px);
}

.statCard .statGrid {
  grid-template-columns: repeat(5, 1fr);
}

.middleSection .statCard:nth-child(1) .statGrid {
  grid-template-columns: repeat(2, 1fr);
}

.middleSection .statCard:nth-child(2) .statGrid {
  grid-template-columns: repeat(3, 1fr);
}

.middleSection .statCard:nth-child(3) .statGrid {
  grid-template-columns: repeat(2, 1fr);
}

.statItem {
  background: white;
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #e6f3ff;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.1);
}

.statValue {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 4px;
  line-height: 1;
}

.statLabel {
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}

/* 今日情况样式 */
.todayCard {
  background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
  border-radius: 8px;
  border: 1px solid #b3d9ff;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.15);
}

.todayCard .ant-card-head {
  background: transparent;
  border-bottom: 1px solid #b3d9ff;
}

.todayCard .ant-card-head-title {
  font-size: 16px;
  font-weight: 600;
  color: #1890ff;
}

.todayContent {
  padding: 16px 0;
}

.todayColumn {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.todayItem {
  background: white;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  border: 1px solid #e6f3ff;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.todayItemTitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 8px;
  font-weight: 500;
}

.todayItemValue {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-bottom: 6px;
}

.todayItemChange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
}

.bigTodayItem {
  background: white;
  border-radius: 6px;
  padding: 20px 12px;
  text-align: center;
  border: 1px solid #e6f3ff;
  box-shadow: 0 2px 6px rgba(24, 144, 255, 0.1);
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bigTodayTitle {
  font-size: 12px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 500;
}

.bigTodayValue {
  font-size: 32px;
  font-weight: bold;
  color: #1890ff;
  margin-bottom: 8px;
}

.bigTodayChange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
}

.changeLabel {
  color: #999;
  margin-right: 4px;
}

.changeValue {
  display: flex;
  align-items: center;
  gap: 2px;
  font-weight: 600;
}

.increase {
  color: #52c41a;
}

.decrease {
  color: #ff4d4f;
}

/* 图表区域样式 */
.chartCard {
  background: white;
  border-radius: 8px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.chartCard .ant-card-head-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.chartControls {
  display: flex;
  align-items: center;
}

.chartContainer {
  padding: 16px 0;
}

.chartLegend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.legendItem {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  padding: 6px 12px;
  background: #f8f9fa;
  border-radius: 16px;
  border: 1px solid #e9ecef;
}

.legendDot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chartWrapper {
  position: relative;
}

.chartPlaceholder {
  height: 300px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 2px dashed #d6d8db;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chartLine {
  position: absolute;
  top: 50px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: linear-gradient(90deg, #ff6b6b 0%, #4ecdc4 25%, #45b7d1 50%, #f9ca24 75%, #6c5ce7 100%);
  border-radius: 2px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.chartDate {
  position: absolute;
  bottom: 20px;
  right: 40px;
  font-size: 12px;
  color: #666;
  background: white;
  padding: 6px 12px;
  border-radius: 16px;
  border: 1px solid #d6d8db;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 菜单收缩时的样式调整 */
.container.collapsed .header {
  margin-left: 80px;
}

.container.collapsed .content {
  margin-left: 80px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
  .statMainNumber {
    font-size: 28px;
  }
  
  .statValue {
    font-size: 16px;
  }
  
  .bigTodayValue {
    font-size: 28px;
  }
}

@media (max-width: 1200px) {
  .statGrid {
    gap: 6px;
  }
  
  .statValue {
    font-size: 14px;
  }
  
  .statLabel {
    font-size: 10px;
  }
  
  .chartLegend {
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .header {
    margin-left: 0;
  }
  
  .content {
    margin-left: 0;
    padding: 10px;
  }
  
  .sider {
    position: relative;
  }
  
  .statMainNumber {
    font-size: 24px;
  }
  
  .statValue {
    font-size: 12px;
  }
  
  .statLabel {
    font-size: 9px;
  }
  
  .bigTodayValue {
    font-size: 24px;
  }
  
  .chartLegend {
    justify-content: center;
    gap: 12px;
  }
} 